#ifndef __HEAD_H__
#define __HEAD_H__

#include <arpa/inet.h>
#include <ctype.h>
#include <dirent.h>
#include <fcntl.h>
#include <mysql/mysql.h>
#include <netdb.h>
#include <netinet/in.h>
#include <pthread.h>
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <sys/epoll.h>
#include <sys/ipc.h>
#include <sys/mman.h>
#include <sys/select.h>
#include <sys/sendfile.h>
#include <sys/shm.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>

#include "init.h"
#include "mysql.h"
#include "operate.h"
#include "queue.h"
#include "worker.h"

/*malloc()函数*/
#define MALLOC(num,ElemType) ((ElemType*)malloc(num * sizeof(ElemType)))

/*calloc()函数*/
#define CALLOC(num,ElemType) ((ElemType*)calloc(num , sizeof(ElemType)))

/*realloc()函数*/
#define REALLOC(arr,size,ElemType) ((ElemType*)realloc(arr, size * sizeof(ElementType)))

#endif
